package HomeWork2;

public class NewPhone extends CellPhone implements IPlayGame{
    private String phone;
    private String message;

    @Override
    public void CallPhone() {
        System.out.println("这是一个新手机在打电话");
    }

    @Override
    public void SendMessage() {
        System.out.println("这是一个新手机在发短信");
    }

    @Override
    public String getPhone() {
        return phone;
    }

    @Override
    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public void setMessage(String message) {
        this.message = message;
    }

    public NewPhone() {
    }

    public NewPhone(String phone, String message) {
        this.phone = phone;
        this.message = message;
    }

    @Override
    public void PlayGame() {
        System.out.println("新增打游戏功能");
    }
}
